<?php 
	$this->addHook('headEnd', '<link rel="stylesheet" type="text/css" href="'.APPBASE.'css/login.css" />
');
?>
<?php include '_header.phtml'; ?>

<div id="content" class="login">
<h1><?php echo $this->title; ?></h1>

<form id="loginForm" action="<?php echo getenv('REQUEST_URI');?>" method="post" class="autocheck">

<div class="error"><?php echo (isset($this->error) ? $this->error : '&nbsp;'); ?></div>

<div>
<label for="loginForm_username"><?php echo L::selected()->username; ?>: </label>
<input type="text" id="loginForm_username" name="username" value="<?php if(array_key_exists('username', $_POST)) echo $_POST['username']; ?>" class="required" />
</div>

<div>
<label for="loginForm_password"><?php echo L::selected()->password; ?>: </label>
<input type="password" id="loginForm_password" name="password" value="<?php /*if(array_key_exists('password', $_POST)) echo $_POST['password'];*/ ?>" class="required" />
</div>

<div class="submit">
<input type="submit" value="<?php echo L::selected()->loginSubmit; ?>" />
</div>

</form>

<script type="text/javascript">
$(document).ready(function () {
	$('#loginForm_username').focus();
});
</script>

</div> <!-- end content -->
<?php include '_footer.phtml'; ?>

